﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class Conn
    {
        public Conn()
        {
            // TODO: Add constructor logic here
        }

        public enum DataBaseName
        {
            MSPetShop4,
            Codematic,
            DBtest
        }

        #region Connection Strings

        public static string getConnString(DataBaseName DataBaseName)
        {
            switch (DataBaseName)
            {
                case DataBaseName.MSPetShop4:
                    return System.Configuration.ConfigurationManager.ConnectionStrings["ConnectString_MSPetShop4"].ToString();
                case DataBaseName.Codematic:
                    return System.Configuration.ConfigurationManager.ConnectionStrings["CodematicConnectionString"].ToString();
                case DataBaseName.DBtest:
                default:
                    return System.Configuration.ConfigurationManager.ConnectionStrings["DBtestConnectionString"].ToString();
            }
        }

        #endregion

    }
}
